package com.zju.cst.cloudApp.server.handler;

import com.zju.cst.cloudApp.SystemConfig;
import com.zju.cst.cloudApp.command.ActionHandler;

public class ActionMap {

	private static String HANDLER_PREFIX = "handlerId_";
	
	public ActionHandler getCommand(String type) {
		String handlerId = HANDLER_PREFIX + type;
		ActionHandler command = (ActionHandler)SystemConfig.getBean(handlerId);
		return command;
	}
}
